package xyz.lwm.lazycat.jdbc.exec;

import java.io.Closeable;

/**
 * // todo
 * cursor for query
 *
 * @author lwm
 * @param <T>
 */
public interface Cursor<T> extends Iterable<T>, Closeable {

    /**
     * is the cursor open?
     */
    boolean isOpen();

    /**
     * is the cursor completed?
     */
    boolean isCompleted();

    /**
     * get the current index of cursor
     */
    int getIndex();

}
